import Vue from 'vue'
import {
  Button,
  NavBar,
  Tabbar, TabbarItem,
  Swipe, SwipeItem,
  Grid, GridItem,
  Card,
  Panel,
  Field,
  Icon
  , List
  , Cell, CellGroup
  , Rate
  , Tab, Tabs
  , Lazyload
  , Stepper
  , Switch
  , SubmitBar
  , Form
} from 'vant'

// Vue.use(Lazyload)

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
  loading: 'https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=3908021644,979476874&fm=26&gp=0.jpg'
  // lazyComponent: true
})

Vue.use(Form)
  .use(SubmitBar)
  .use(Switch)
  .use(Stepper)
  .use(Tab)
  .use(Tabs)
  .use(Rate)
  .use(Cell)
  .use(CellGroup)
  .use(List)
  .use(Icon)
  .use(Field)
  .use(Panel)
  .use(Card)
  .use(Grid)
  .use(GridItem)
  .use(Swipe).use(SwipeItem)
  .use(Tabbar).use(TabbarItem)
  .use(NavBar)
  .use(Button)
